package com.dly.blog.domian.ro;

import com.dly.blog.enums.LoginType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: DaiLiYu
 * @Date: 2023/7/10 23:08
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class LoginRO {

    @Schema(description = "用户账号/邮箱")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "登入类型 目前支持账号和邮箱登入：ACCOUNT/EMAIL")
    @NotNull(message = "登入类型不能为空")
    private LoginType loginType;

    @Schema(description = "验证码")
    private String code;

    @Schema(description = "唯一验证码")
    private String uuid;
}
